import httpInstance from "@/utils/http";

//轮播图获取
export function getBannerApi(params = {}) {
    const { distributionSite = '1'} = params
    return httpInstance({
        url: '/home/banner',
        params: {
            distributionSite
        }
    })
}
// 新鲜好物
export function getNewApi() {
    return httpInstance({
        url: '/home/new'
    })
}
export function getHotApi() {
    return httpInstance({
        url: '/home/brand',
    })
}

export const getGoodsApi = () => {
    return httpInstance({
        url: '/home/goods'
    })
}